package com.foreknow.service.impl;

import com.foreknow.dao.DiseCategoryMapper;
import com.foreknow.entity.DiseCategory;
import com.foreknow.service.DiseCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DiseCategoryServiceImpl implements DiseCategoryService{
    @Autowired
    private DiseCategoryMapper diseCategoryMapper;
    /**
     * 查询疾病分类
     * @return
     */
    @Override
    public List<DiseCategory> selectDiseCategoryList() {

        List<DiseCategory>list= diseCategoryMapper.selectDiseCategoryList();
        return list;
    }

    @Override
    public int insertSelective(DiseCategory record) {
        return diseCategoryMapper.insertSelective( record);
    }

    @Override
    public int updateByPrimaryKey(DiseCategory record) {
        return diseCategoryMapper.updateByPrimaryKey(record);
    }
    /**
     * 根据sequenceno查询疾病分类
     * @param sequenceno
     * @return
     */
    @Override
    public DiseCategory selectdisecategory(Integer sequenceno) {
        return diseCategoryMapper.selectdisecategory(sequenceno);
    }
    /**
     * 根据sequencno进行逻辑删除
     * @param sequencno
     * @return
     */

    @Override
    public int updateDiseategory(Integer sequencno) {
        return diseCategoryMapper.updateDiseategory(sequencno);
    }

    @Override
    public List<DiseCategory> selectDiseCategoryBydisecatgory(DiseCategory diseCategory) {
        return diseCategoryMapper.selectDiseCategoryBydisecatgory(diseCategory);
    }






}
